function shoujihao() {
	var sjh = document.getElementById("phone");
	var yzsjh = document.getElementById("phoneError");
	var sjhb = /^1[34578]\d{9}$/;
	if(sjhb.test(sjh.value)) {
		yzsjh.innerHTML = "手机号正确";
		yzsjh.style.color = "green"
		return true
	} else {
		yzsjh.innerHTML = "您的手机号码不正确";
		yzsjh.style.color = "red";
		return false
	};
};

function yanzheng() {
	var pbq = document.getElementById("pwdError");
	var pwd = document.getElementById("pwd");
	var pwdva = pwd.value;
	var oo = /^([a-zA-Z0-9]|[._]){6,16}$/;
	var pp = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,16}$/;
	if(oo.test(pwdva)) {
		pbq.innerHTML = "输入密码正确";
		if(pp.test(pwdva)) {
			pbq.innerHTML = "密码强度强";
			pbq.style.color = "green";

		} else {
			pbq.innerHTML = "密码强度弱";
			pbq.style.color = "darkorange";
		}
		return true
	} else {
		pbq.innerHTML = "密码格式不正确,6-16位可包含(._)";
		pbq.style.color = "red";
		return false
	}
}

function zaici() {
	var pwd = document.getElementById("pwd");
	var pwdv = pwd.value;
	var pwd2 = document.getElementById("pwd2");
	var pwdv2 = pwd2.value;
	var yzp2 = document.getElementById("pwdError2");

	if(pwdv == pwdv2 && pwdv2 != "") {
		yzp2.innerHTML = "两次输入的密码一致,正确";
		yzp2.style.color = "green";
		return true
	} else {
		yzp2.innerHTML = "*两次输入的密码不一致，错误";
		yzp2.style.color = "red";
		return false
	}
}